summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes/workspace/[id]/billing/redeem-section.module.css
blob: 42140e4e847acec9d57b8b34ba29cbe42fedc59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.root {
  [data-slot="redeem-container"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 20rem;
    width: fit-content;

    @media (max-width: 30rem) {
      width: 100%;
    }
  }

  [data-slot="redeem-form"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);

    [data-slot="input-row"] {
      display: flex;
      gap: var(--space-2);
      align-items: stretch;

      @media (max-width: 30rem) {
        flex-direction: column;
      }
    }

    input {
      flex: 1;
      padding: var(--space-2) var(--space-3);
      border: 1px solid var(--color-border);
      border-radius: var(--border-radius-sm);
      background-color: var(--color-bg);
      color: var(--color-text);
      font-size: var(--font-size-sm);
      font-family: var(--font-mono);

      &:focus {
        outline: none;
        border-color: var(--color-accent);
      }

      &::placeholder {
        color: var(--color-text-disabled);
      }
    }

    [data-slot="form-error"] {
      color: var(--color-danger);
      font-size: var(--font-size-sm);
      line-height: 1.4;
    }

    [data-slot="form-success"] {
      color: var(--color-success, var(--color-accent));
      font-size: var(--font-size-sm);
      line-height: 1.4;
    }
  }
}